package com.hnkywl.sts.entity.organ;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.util.Date;

/**
 * 说明：企业法人
 * 包:        com.hnkywl.sts.entity.organ
 * 类描述:    企业法人
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_SYS_DSGD")
public class Dsgd {
    @Id
    @SequenceGenerator(name = "seqDsgd", allocationSize = 1, sequenceName = "SEQ_SYS_DSGD")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqDsgd")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "GS_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Gsjg nbgs;

    private String hours;

    private String minutes;

    private String seconds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Gsjg getNbgs() {
        return nbgs;
    }

    public void setNbgs(Gsjg nbgs) {
        this.nbgs = nbgs;
    }

    public String getHours() {
        return hours;
    }

    public void setHours(String hours) {
        this.hours = hours;
    }

    public String getMinutes() {
        return minutes;
    }

    public void setMinutes(String minutes) {
        this.minutes = minutes;
    }

    public String getSeconds() {
        return seconds;
    }

    public void setSeconds(String seconds) {
        this.seconds = seconds;
    }
}

